/***************************************************************
 * Name:      cameraApp.cpp
 * Purpose:   Code for Application Class
 * Author:     ()
 * Created:   2024-01-02
 * Copyright:  ()
 * License:
 **************************************************************/

#ifdef WX_PRECOMP
#include "wx_pch.h"
#endif

#ifdef __BORLANDC__
#pragma hdrstop
#endif //__BORLANDC__

#include "cameraApp.h"
#include "mainDialog.h"

#include <wx/wx.h>
#include <wx/taskbar.h>

IMPLEMENT_APP(cameraApp);

bool cameraApp::OnInit()
{
    wxTaskBarIcon m_taskBarIcon;
//    m_taskBarIcon.SetIcon(wxIcon(sample_xpm), wxT("DesktopShare");
//    Bind(EVT_TASKBAR_LEFT_DCLICK, &[](EventArg &e){
//        wxMessageBox(wxT("hello"));
//    }, this);
//    Bind(EVT_TASKBAR_RIGHT_UP, &[](EventArg &e){
//        wxMessageBox(wxT("hello"));
//    }, this);

    mainDialog* dlg = new mainDialog(0L);
    dlg->SetIcon(wxICON(aaaa)); // To Set App Icon
    dlg->Show(true);
    return true;
}
